<%--
    Document   : cerrarsesion
    Created on : 07/09/2011, 12:20:35
    Author     : ad
--%>

<%@page import="clases.Conexion"%>
<% response.setHeader("Pragma","no-cache");%>
<% response.setHeader("Cache-Control","no-store");%>
<%response.setHeader("Cache", "no-cache"); %>
<% response.setDateHeader("Expires",0);%>

<meta http-equiv=="Pragma" content="no-cache"/>
<meta http-equiv="Expires" content="-1"/>
<meta http-equiv=="Cache-Control" content="no-store"/>
<meta http-equiv="Cache" content="no-cache"/>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<script lenguaje="JavaScript">
if(window.history.forward(1) != null)
    window.history.forward(1);
</script>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<%@ page session="true" %>
<%
HttpSession sesionOk = request.getSession();
Conexion m = new Conexion();
String ma = (String)sesionOk.getAttribute("Usuario");
m.eliminarLogueado(ma);

request.removeAttribute("Usuario");
request.removeAttribute("Permiso");
request.removeAttribute("departamento");
sesionOk.invalidate();
//terminamos la configuracion a nuestra base de datos
clases.Conexion.cerrar_la_configuracion();

%>
<jsp:forward page="index.jsp"/>



<% response.setHeader("Pragma","no-cache");%>
<% response.setHeader("Cache-Control","no-store");%>
<%response.setHeader("Cache", "no-cache"); %>
<% response.setDateHeader("Expires",0);%>eHeader("Expires",0);%>